<?php
/**
 * @version 0.8.3 2010-10-07
 * @package Joomla
 * @subpackage LeagueResults
 * @copyright (C)  2008, 2009, 2010 Henryk Drozd
 * @license GNU/GPL, see LICENSE.php
 * LeagueResults is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License 2
 * as published by the Free Software Foundation.

 * LeagueResults is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

defined('_JEXEC') or die('Restricted access');

?>
<form action="index.php" method="post" name="adminForm" id="adminForm">
	<table   class="adminform">
		<tr>
			<td width="10%">
				<label for="published">
					<?php echo JText::_( 'PUBLISHED' ).':'; ?>
				</label>
			</td>
			<td>
				<?php
				$html = JHTML::_('select.booleanlist', 'published', 'class="inputbox"', $this->row->published );
				echo $html;
				?>
			</td>
		</tr>
	</table>
<?php
echo $this->pane->startPane( 'tabs' );
echo $this->pane->startPanel( JText::_( 'BASIC' ), 'panel1' );					

?>	
	<table cellspacing="0" cellpadding="0" border="0" width="100%" >
		<tr>
			<td valign="top">
					<tr>
						<td>
							<label for="role">
								<?php echo JText::_( 'ROLE' ).':'; ?>
							</label>
						</td>
						<td>
						<?php
						echo $this->Lists['roles']
						?>
						</td>
					</tr>
					<tr>
						<td>
							<label for="firstname">
								<?php echo JText::_( 'FIRSTNAME' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="firstname" value="<?php echo $this->row->firstname; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="lastname">
								<?php echo JText::_( 'LASTNAME' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="lastname" value="<?php echo $this->row->lastname; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="picture">
								<?php echo JText::_( 'COACH\'S PHOTO' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="picture" value="<?php echo $this->row->picture; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="nationality">
								<?php echo JText::_( 'NATIONALITY' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="nationality" value="<?php echo $this->row->nationality; ?>" size="50" maxlength="100" />
						</td>
					</tr>

					<tr>
						<td>
							<label for="position">
								<?php echo JText::_( 'POSITION' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="position" value="<?php echo $this->row->position; ?>" size="50" maxlength="100" />
						</td>
					</tr>
					</table>
					<table><tr><td><?php JText::_('COACH INFO')?></td></tr>
					<tr><td>
						<?php
						// parameters : areaname, content, hidden field, width, height, rows, cols 
						echo $this->editor->display( 'info',  $this->row->info, '100%;', '550', '75', '20', array('pagebreak', 'readmore') ) ;
						?>
					</td></tr>
					</table>

<?php
echo $this->pane->endPanel();
echo $this->pane->startPanel( JText::_( 'ADDRESS' ), 'panel2a' );
?>	
				<table  class="adminform">
					<tr>
						<td>
							<label for="address1">
								<?php echo JText::_( 'ADDRESS1' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="address1" value="<?php echo $this->row->address1; ?>" size="50" maxlength="32" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="address2">
								<?php echo JText::_( 'ADDRESS2' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="address2" value="<?php echo $this->row->address2; ?>" size="50" maxlength="32" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="city">
								<?php echo JText::_( 'CITY' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="city" value="<?php echo $this->row->city; ?>" size="50" maxlength="32" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="state">
								<?php echo JText::_( 'STATE' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="state" value="<?php echo $this->row->state; ?>" size="50" maxlength="32" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="zip">
								<?php echo JText::_( 'ZIP' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="zip" value="<?php echo $this->row->zip; ?>" size="50" maxlength="32" />
						</td>
					</tr>
					
			</table>
<?php
echo $this->pane->endPanel();
echo $this->pane->startPanel( JText::_( 'CONTACTS' ), 'panel3' );
?>	
				<table  class="adminform">
					<tr>
						<td>
							<label for="email">
								<?php echo JText::_( 'EMAIL' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="email" value="<?php echo $this->row->email; ?>" size="50" maxlength="64" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="email2">
								<?php echo JText::_( 'EMAIL2' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="email2" value="<?php echo $this->row->email2; ?>" size="50" maxlength="64" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="phone1">
								<?php echo JText::_( 'PHONE1' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="phone1" value="<?php echo $this->row->phone1; ?>" size="50" maxlength="32" />
						</td>
					</tr>
					<tr>
						<td>
							<label for="phone2">
								<?php echo JText::_( 'PHONE2' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="phone2" value="<?php echo $this->row->phone2; ?>" size="50" maxlength="32" />
						</td>
					</tr>
			</table>

<?php 
echo $this->pane->endPanel();
echo $this->pane->startPanel( JText::_( 'OTHER' ), 'panel4' );
?>	
				<table  class="adminform">
					<tr>
						<td>
							<label for="bio_article_id">
								<?php echo JText::_( 'BIO_ARTICLE_ID' ).':'; ?>
							</label>
						</td>
						<td>
							<input name="bio_article_id" value="<?php echo $this->row->bio_article_id; ?>" size="10" maxlength="4" />
						</td>
					</tr>
			</table>

<?php 
echo $this->pane->endPanel();
echo $this->pane->endPane();
?>				


	
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="option" value="com_lr" />
<input type="hidden" name="id" value="<?php echo $this->row->id; ?>" />
<input type="hidden" name="controller" value="players" />
<input type="hidden" name="view" value="player" />
<input type="hidden" name="task" value="" />

</form>
<?php
//print_r ($this);
?>
<p class="copyright">
		<?php echo lrAdmin::footer( ); ?>
</p>
